package com.cws4cloud.cws.mall.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cws4cloud.cws.mall.cms.entity.News;

import java.util.List;
import java.util.Map;

/**
 * 内容管理
 *
 * @author zhulj
 * @date 2021-04-20 17:21:31
 */
public interface NewsService extends IService<News> {

	List<Map<String,Object>> getNewsCountGroupByClass(Integer siteId);

	IPage<News> getHotNews(Integer classlistId, Integer siteId);

	IPage<News> getNewsByClasslistId(Integer classlistId, Integer siteId);

	News getPreNews(Integer classId, Integer sequence);

	News getNextNews(Integer classId, Integer sequence);
}
